from typing import Optional
import os


class ConfigUtils:
    config: Optional[dict] = None

    @staticmethod
    def get_prometheus_dir():
        prometheus_directory = os.environ.get('PROMETHEUS_MULTIPROC_DIR')
        if prometheus_directory is None:
            prometheus_directory = 'prometheus_temp'
            os.environ['PROMETHEUS_MULTIPROC_DIR'] = prometheus_directory
        return prometheus_directory
